/*
 * @features: 主要功能
 * @description: 内容说明
 * @Date: 2021-09-07 09:46:18
 * @Author: judu233(769471424@qq.com)
 * @LastEditTime: 2021-09-11 11:48:21
 * @LastEditors: judu233
 */
import VmParent from "./VmParent";

const { ccclass, property } = cc._decorator;

@ccclass
export default class DemoVMParent extends VmParent {

    data = {
        a: 1,
        b: 0,
        c: 0,
        dd:23
    }

    start() {
    }

    update(dt) {
        this.data.a += 1;

        if (this.data.a >= 60) {
            this.data.b += 1;
            this.data.a = 0;
        }

        if (this.data.b >= 60) {
            this.data.c += 1;
            this.data.b = 0;
        }
    }
}
